package com.example.login.domain.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.Pattern;
import lombok.Data;

@Data
@Schema(description = "员工验证码登录时传递的数据模型")
public class EmployeeLoginCaptchaDTO {
    @Schema(description ="手机号" , example = "13800000002")
    @Pattern(regexp = "^1[3-9]\\d{9}$", message = "手机号格式不正确")
    private String phone;

    @Schema(description ="验证码" , example = "123456")
    @Pattern(regexp = "^\\d{6}$", message = "验证码格式不正确")
    private String captcha;
}
